#pragma once
#include<stdio.h>
#include<stdlib.h>
#include<assert.h>

typedef int SQDatatype;
typedef struct Seqlist
{
	SQDatatype* arr;
	int size;
	int capacity;
}Seqlist;

void SeqlistInit(Seqlist* ps);
void SeqlistPrint(Seqlist* ps);
void SeqlistDestory(Seqlist* ps);
void Seqlistpushback(Seqlist* ps, SQDatatype x);
void Seqlistpushfront(Seqlist* ps, SQDatatype x);
void SeqlistPopfront(Seqlist* ps);
void SeqlistPopback(Seqlist* ps);
void SeqlistInsert(Seqlist* ps, int pos,SQDatatype x);
void SeqlistErase(Seqlist* ps,int pos);
int SeqlistFind(Seqlist* ps, SQDatatype x);
void SeqlistModify(Seqlist* ps, int pos,SQDatatype x);
int SeqlistFull(Seqlist* ps);